package com.caifu.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 操作日志表
 * </p>
 *
 * @author tww
 * @since 2021-03-01
 */
@Data
public class SysRecord extends Model<SysRecord> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 操作类型
     */
    private String labelId;

    /**
     * 商铺id
     */
    private Integer shopId;

    /**
     * 用户id
     */
    private Integer sysUserId;

    /**
     * 创建时间
     */
    private Date createdTime;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "SysRecord{" +
        "id=" + id +
        ", labelId=" + labelId +
        ", shopId=" + shopId +
        ", sysUserId=" + sysUserId +
        ", createdTime=" + createdTime +
        "}";
    }
}
